package com.ef.service;

import java.util.List;

import com.ef.domain.Classroom;
import com.ef.util.CustomExample;
import com.ef.util.PaginationSupport;

public interface ClassroomService extends BaseService {

	public PaginationSupport<Classroom> findByExample(
			CustomExample<Classroom> example, int startIndex, int pageSize);
	
	public void saveOrUpdate(Classroom entity);
	
	public void delete(Classroom entity);
	
	public Classroom findById(Long id);
	
	public List<Classroom> findByCapacityInSchool(Long schoolId,Integer caps);
	
	public List<Classroom> findAllValid();
	
	public List<Classroom> findAllValidInSchool(Long schoolId);
	
	public List<Classroom> findByName(String name,int max);
	
	public List<Classroom> findByNameInSchool(String name,Long schoolId,int max);
}
